package com.jk.zhr;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 周慧茹
 * 创建时间 2018/4/8
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private  UserService  userService;

     @GetMapping
     public  String   query(){

     User user =    userService.query();

         System.out.println("----"+user);


         return  user.toString();
     }

}
